package com.snoob.springboot.enums;

/**
 * @描述 系统状态
 * @作者: 李星 lixing_java@163.com
 * @日期 2019/6/29 22:47
 */
public enum SysStateEnum {
    ADMIN_GRADE_SUPER_ADMIN(1, "系统-超级管理员"),
    ADMIN_GRADE_PROVINCE(2, "系统-省级管理员"),
    ADMIN_GRADE_CITY(3, "系统-市级管理员"),
    ADMIN_GRADE_AREA(4, "系统-区级管理员"),
    ADMIN_STATUS_EFFECTIVE(1, "系统管理员状态-有效"),
    ADMIN_STATUS_LOCKED(2, "系统管理员状态-被锁"),
    ADMIN_STATUS_PROHIBIT(3, "系统管理员状态-禁用"),

    USER_GRADE_SUPER(1, "企业用户-超级管理员"),
    USER_GRADE_COMMON(2, "企业用户-普通管理员"),
    USER_STATE_EFFECTIVE(1, "企业用户状态-有效"),
    USER_STATE_LOCKED(2, "企业用户状态-被锁"),
    USER_STATE_PROHIBIT(3, "企业用户状态-禁用"),

    SEX_MALE(1, "男"),
    SEX_FEMALE(2, "女"),
    SEX_OTHER(3, "未知"),

    MAIL_LOGIN( 1, "通过邮件-登陆" ),
    MAIL_UPDATE_PASSWORD( 2, "通过邮件-修改密码" ),

    MSG_LOGIN( 1, "通过短信-登陆" ),
    MSG_UPDATE_PASSWORD( 2, "通过短信-修改密码" ),

    STATE_NO(0, "N"),
    STATE_YES(1, "Y"),

    ORDER_STATE_ING(1, "正在支付"),
    ORDER_STATE_SUCCESS(2, "支付成功"),
    ORDER_STATE_FAIL(3, "支付失败"),

    RESPONSE_STATUS_SUCCESS( 0, "响应成功" ),
    RESPONSE_STATUS_FALSE( 1, "系统错误" ),
    RESPONSE_STATUS_FALSE_TOKEN_TIMEOUT( 1000, "TOKEN超时" ),
    RESPONSE_STATUS_FALSE_TOKEN_ERROR( 1001, "TOKEN非法" ),
    RESPONSE_STATUS_FALSE_TOKEN_EXISTS( 1002, "该用户已在别处登录，请重新登录" ),
    RESPONSE_STATUS_FALSE_USER_DISABLE( 1003, "该用户已被禁用" ),
    ;

    private int value;
    private String description;

    SysStateEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDescribe() {
        return description;
    }

    public void setDescribe(String description) {
        this.description = description;
    }
}
